//
//  MapViewState.swift
//  JiaoZiTaxi
//
//  Created by Hu Gang on 2022/10/9.
//

import Foundation
import MapKit

class MapViewState : ObservableObject {
  // 级别
  var span:MKCoordinateSpan?

  // 中心点
  @Published var center: CLLocationCoordinate2D = CLLocationCoordinate2D(latitude: Constants.defaultLatitude, longitude: Constants.defaultLongitude)

  // 图标
  var pinAnnotation: PinAnnotation?

  init() {
    pinAnnotation = PinAnnotation(coordinate: CLLocationCoordinate2D(latitude: Constants.defaultLatitude, longitude: Constants.defaultLongitude), mapViewState: self)
  }
}
